<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>个人主页</title>
    <link rel="stylesheet" href="${ctxPath}/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${ctxPath}/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="${ctxPath}/css/common.css">
    <link rel="stylesheet" href="${ctxPath}/css/topic.css">
    <link rel="stylesheet" href="${ctxPath}/css/customer.css">
</head>
<body>
<main class="topics-container">
    <c:forEach items="${topicList}" var="t" varStatus="x">

        <div class="row topics">
            <div class="topic-head">
                <a href="${ctxPath}/customer/page-people?id=${t.author.id}">
                    <div class="head-photo">
                            ${t.author.nickname.charAt(0)}
                    </div>

                </a>
                <span class="nick">${t.author.nickname}</span>
                <span class="time">${t.publishTime}</span>

            </div>
            <hr>
            <a href="${ctxPath}/topic/detail?id=${t.id}"  class="topic-body">
                    ${t.title}
            </a>
        </div>
    </c:forEach>

</main>

</body>
</html>
